package cn.tedu.mybatisdemo.mapper;

import cn.tedu.mybatisdemo.pojo.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {

    public List<Student> getStudentAll();

    public int insertStudent();

    public int updateStudent();

    public int deleteStudent();

    public Student getStudentById (Integer id);

    public Student getStufentByName(String name);

    public List<Student> getStudentByIds(Integer minId,Integer maxId);

    public Integer addStudent(Student student);

}
